﻿using Avalon.Core.MVC;

namespace Avalon.Core.Providers {
    public class RendererDescriptor : Avalon.Core.Providers.IRendererDescriptor {
        public string Name { get; set; }
        public string Template { get; set; }
        public string DefaultTemplate { get; set; }
        public string GetPipeline { get; set; }
        public string PostPipeline { get; set; }
        public IViewRenderer ViewRenderer { get; set; }

        public string ViewName { get; set; }
        public string FolderName { get; set; }

        public string ViewModelName(string action) {
            return string.Format(Template, action);
        }

        public string DefaultViewModelName(string action) {
            return string.Format(DefaultTemplate, action);
        }
    }
}
